package com.anjufang.service.system;

import com.anjufang.entity.AdminRole;
import com.anjufang.entity.AdminRoleMenu;
import com.anjufang.utils.page.Query;
import com.baomidou.mybatisplus.mapper.Wrapper;

import java.util.List;


public interface AdminRoleService {
	
	public List<AdminRole> queryList(Query query);
	
	public int queryTotal(Query query);
	
	public AdminRole adminRole(Wrapper<AdminRoleMenu> wrapper, Long id);
	
	public void addAndUpdatemenus(AdminRole role);
	
	public void updateAndUpdatemenus(AdminRole role);
	
	public void deleteBatch(Long[] ids);
	
	public void saveOrUpdate(Long userId, List<Long> roleIdList);
}
